package Ms.dao;

import Ms.entity.Project;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface ProjectMapper extends BaseMapper<Project> {
    Project selectById(Long projectId);
    @Update("UPDATE project SET is_deleted = 1 WHERE project_id = #{projectId} AND is_deleted = 0")
    int deleteByIdWithLogic(@Param("projectId") Long projectId);

}
